import ReactDOM from 'react-dom/client'
import 'normalize.css'
import './index.less'
import 'virtual:uno.css'
import 'inter-ui/inter.css'
import { switchDarkTheme } from './hooks/switchDarkTheme'
import { Router } from './router'

import '@semi-bot/semi-theme-whale001/semi.min.css'

// import { initVChartSemiTheme } from '@visactor/vchart-semi-theme'

// initialization
//initVChartSemiTheme();

switchDarkTheme(useCommonStore.getState().isDark)

import '@/locales/config'

ReactDOM.createRoot(document.getElementById('root')!).render(<Router />)
